-- GENERATED SPELL FOR [Ruins Dweller] --


function spell0_29920(pUnit, Event) --@Regurgitate,n/a--
pUnit:FullCastSpellOnTarget(55643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29920', 4500, 1)
end

function spell1_29920(pUnit, Event) --@Spring,n/a--
pUnit:FullCastSpellOnTarget(55652,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29920', 563, 1)
end

function Sorts_29920(pUnit, Event)
local choix_sorts_29920 = math.random(0, 1)
if choix_sorts_29920 == 0 then
pUnit:RegisterEvent('spell0_29920', 1, 1)
end
if choix_sorts_29920 == 1 then
pUnit:RegisterEvent('spell1_29920', 1, 1)
end
end

function mob29920_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29920', math.random(1500, 3000), 1)
end

function mob29920_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29920_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29920_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29920, 1, 'mob29920_Action')
RegisterUnitEvent(29920, 2, 'mob29920_Leave')
RegisterUnitEvent(29920, 3, 'mob29920_Kill')
RegisterUnitEvent(29920, 4, 'mob29920_Die')
